import { NgModule } from '@angular/core';
import { FeaturesRoutingModule } from './features-routing.module';
import { FeaturesComponent } from './features.component';
import { CommonModule } from '@angular/common';

import { FeatureTreeComponent } from './component/feature-tree/feature-tree.component';
// Angular拖拽Module
import { DragDropModule } from '@angular/cdk/drag-drop';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { IconDefinition } from '@ant-design/icons-angular';
import {
  MinusCircleOutline,
  PlusOutline,
} from '@ant-design/icons-angular/icons';
const icons: IconDefinition[] = [MinusCircleOutline, PlusOutline];

import { DataService } from './feature.dataservice';
import { SharedModule } from 'src/app/share/share.module';
import { FeatureAddscenarioComponent } from './component/feature-addscenario/feature-addscenario.component';
import { NzDrawerModule } from 'ng-zorro-antd/drawer';
import { ShowCasesModule } from '../showCases/cases.module';
import { ScenarioTableComponent } from './component/scenario-table/scenario-table.component';
import { CreateScenarioComponent } from './component/create-scenario/create.scenario.component';

@NgModule({
  imports: [
    FeaturesRoutingModule,
    CommonModule,
    DragDropModule,
    SharedModule,
    ShowCasesModule,
    NzDrawerModule,
    NzIconModule.forChild(icons),
  ],
  declarations: [
    FeaturesComponent,
    FeatureTreeComponent,
    FeatureAddscenarioComponent,
    ScenarioTableComponent,
    CreateScenarioComponent,
  ],
  exports: [FeaturesComponent],
  providers: [DataService],
})
export class FeatureModule {}
